package com.example.sprbtest.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class TestController {
    @RequestMapping("/login")
    public String login(HttpServletRequest rqs){
        System.out.println("已收到请求");
        String name=rqs.getParameter("name");
            return name;
    }
}
